package com.jeesit.cloud.spot.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeesit.cloud.model.GdInventoryRecord;
import com.jeesit.cloud.spot.mapper.GdInventoryRecordMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jeesit.cloud.spot.service.IGdInventoryRecordService;
import org.springframework.stereotype.Service;
import com.jeesit.cloud.dto.GdInventoryRecordDto;

import javax.annotation.Resource;
import java.util.List;

/**
 *  服务实现类
 *
 * @author lss
 * @since 2024-02-06
 */
@Service
public class GdInventoryRecordServiceImpl extends ServiceImpl<GdInventoryRecordMapper, GdInventoryRecord> implements IGdInventoryRecordService {

    @Resource
    private GdInventoryRecordMapper mapper;

    @Override
    public Page<GdInventoryRecord> page(Page<GdInventoryRecord> p, GdInventoryRecordDto dto) {
        return mapper.selectCustomPage(p,dto);
    }

    @Override
    public List<GdInventoryRecord> list(int i, GdInventoryRecordDto dto) {
        return mapper.selectCustomList(i,dto);
    }

    @Override
    public void deleteDate() {
        mapper.updateDeleted();
    }

}
